package com.bmob.lover.ui.fragment.base

import androidx.recyclerview.widget.RecyclerView
import com.theone.common.callback.IImageUrl
import com.theone.mvvm.core.app.widge.pullrefresh.PullRefreshLayout
import com.theone.mvvm.core.base.fragment.BaseImageSnapFragment
import com.theone.mvvm.core.base.viewmodel.BaseListViewModel
import com.theone.mvvm.core.databinding.BasePullFreshFragmentBinding

//  ┏┓　　　┏┓
//┏┛┻━━━┛┻┓
//┃　　　　　　　┃
//┃　　　━　　　┃
//┃　┳┛　┗┳　┃
//┃　　　　　　　┃
//┃　　　┻　　　┃
//┃　　　　　　　┃
//┗━┓　　　┏━┛
//    ┃　　　┃                  神兽保佑
//    ┃　　　┃                  永无BUG！
//    ┃　　　┗━━━┓
//    ┃　　　　　　　┣┓
//    ┃　　　　　　　┏┛
//    ┗┓┓┏━┳┓┏┛
//      ┃┫┫　┃┫┫
//      ┗┻┛　┗┻┛
/**
 * @author The one
 * @date 2021-08-06 16:59
 * @describe TODO
 * @email 625805189@qq.com
 * @remark
 */
abstract class BaseImageFragment<T : IImageUrl, VM : BaseListViewModel<T>>:BaseImageSnapFragment<T,VM,BasePullFreshFragmentBinding>() {

    override fun getDataBindingClass(): Class<BasePullFreshFragmentBinding> = BasePullFreshFragmentBinding::class.java

    override fun onScrollChanged(item: T, position: Int, total: Int) {

    }

    override fun getRefreshLayout(): PullRefreshLayout? = getDataBinding().refreshLayout

    override fun getRecyclerView(): RecyclerView = getDataBinding().recyclerView

}